package com.slipper.system.employee.bo;

import java.util.List;

import com.slipper.core.gson.GsonExclude;
import com.slipper.system.organization.bo.OrganizationBO;
import org.springframework.web.multipart.MultipartFile;

import com.slipper.common.bo.CommonBO;

/**
 * 员工信息表
 */
public class EmployeeBO extends CommonBO {
    /* 主键ID */
    private String id;
    /* 主键ID */
    private String[] ids;
    /* 组织机构ID */
    private String organizationId;
    private String[] organizationIds;
    private String strOrganizationIds;
    /* 姓名 */
    private String name;
    /* 性别 */
    private String sex;
    /* 登录名 */
    private String username;
    /* 登录密码 */
    @GsonExclude
    private String password;
    private String passwordInit;
    private Long passwordTime;
    private String theme;
    /*排序*/
    private Integer ordinal;
    /*是否有效*/
    private String valid;
    private String updateId;
    private String createId;
    /* 更新时间 */
    private Long updateTime;
    /* 创建时间 */
    private Long createTime;

    private String roleIds;
    private String roleNames;

    private String unitId;
    private String orgId;
    private String orgCode;
    private String orgName;

    private String type;
    private String captcha;
    private boolean superAdmin;
    private List<OrganizationBO> organizationList;
    private String sessionId;
    private String loginIp;
    private Long loginTime;

    /* 文件导入 */
    private MultipartFile file;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String[] getIds() {
        return ids;
    }

    public void setIds(String[] ids) {
        this.ids = ids;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String[] getOrganizationIds() {
        return organizationIds;
    }

    public void setOrganizationIds(String[] organizationIds) {
        this.organizationIds = organizationIds;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPasswordInit() {
        return passwordInit;
    }

    public void setPasswordInit(String passwordInit) {
        this.passwordInit = passwordInit;
    }

    public Long getPasswordTime() {
        return passwordTime;
    }

    public void setPasswordTime(Long passwordTime) {
        this.passwordTime = passwordTime;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public Integer getOrdinal() {
        return ordinal;
    }

    public void setOrdinal(Integer ordinal) {
        this.ordinal = ordinal;
    }

    public String getValid() {
        return valid;
    }

    public void setValid(String valid) {
        this.valid = valid;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }

    public String getRoleNames() {
        return roleNames;
    }

    public void setRoleNames(String roleNames) {
        this.roleNames = roleNames;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public boolean isSuperAdmin() {
        return superAdmin;
    }

    public void setSuperAdmin(boolean superAdmin) {
        this.superAdmin = superAdmin;
    }

    public List<OrganizationBO> getOrganizationList() {
        return organizationList;
    }

    public void setOrganizationList(List<OrganizationBO> organizationList) {
        this.organizationList = organizationList;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getStrOrganizationIds() {
        return strOrganizationIds;
    }

    public void setStrOrganizationIds(String strOrganizationIds) {
        if (strOrganizationIds != null) {
            this.organizationIds = strOrganizationIds.split(",");
        }
        this.strOrganizationIds = strOrganizationIds;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Long getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Long loginTime) {
        this.loginTime = loginTime;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }
}
